/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Data;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.*;
import java.io.*;
/**
 *
 * @author Sean
 */
public class UseCaseStruct implements java.io.Serializable {
    private int id;
    private String actor;
    private String system;
    private String verb;
    private String noun;
    private String vNPhrase;
    private boolean verified;

    public void setvNPhrase(String vNPhrase) {
        this.vNPhrase = vNPhrase;
    }

    public void UseCase(){
        this.id = 0;
        this.actor = "";
        this.system = "";
        this.vNPhrase = "";
        this.verified = false;
    }

    public void setNoun(String noun) {
        this.noun = noun;
    }

    public void setVerb(String verb) {
        this.verb = verb;
    }    

    public String getVNPhrase() {
        //this.vNPhrase = (this.verb).concat(" "+this.noun);
        return this.vNPhrase;
    }
    public void ConfigVNPhrase() {
        this.vNPhrase = (this.verb).concat(" "+this.noun);
    }

    public String getActor() {
        return actor;
    }

    public int getId() {
        return id;
    }

    public String getSystem() {
        return system;
    }

    public boolean isVerified() {
        return verified;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public void setSystem(String system) {
        this.system = system;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setVerified(boolean verified) {
        this.verified = verified;
    }
    public String toString(){
        return(this.id + " " + this.actor + " " + this.vNPhrase + " " + this.system);
    }

    public void setVerified(String myBool) {
        if(myBool.equals("true")){
            this.verified = true;
        }
        else{
            this.verified = false;
        }
    }
}
